package com.ourteam.datawarehouse.dao;

import net.dao.IDataAccessInterface;

/**
 * Template Name : DAO接口模板 Template Version : 1 Template Last Modfiy Date : Thu Sep 21 11:14:14 CST
 * 2017 Auto Generate Date : 2019-02-13 11:54:28 Warning ! This file will be overwrite when
 * regenerate !
 */
public interface IBaseDataSourceDAO
    extends IDataAccessInterface<DataSource, DataSourceDAOQueryBean> {

  /** Mapped Entity Name */
  static final String EntityName = "DW_DATA_SOURCE";

  /** Mapped Field ID */
  static final String Id = "DW_DATA_SOURCE.ID";

  /** Mapped Field DATA_SOURCE_TYPE */
  static final String DataSourceType = "DW_DATA_SOURCE.DATA_SOURCE_TYPE";

  /** Mapped Field DATA_SOURCE_CODE */
  static final String DataSourceCode = "DW_DATA_SOURCE.DATA_SOURCE_CODE";

  /** Mapped Field DATA_SOURCE_URL */
  static final String DataSourceUrl = "DW_DATA_SOURCE.DATA_SOURCE_URL";

  /** Mapped Field DATA_SOURCE_ACCOUNT */
  static final String DataSourceAccount = "DW_DATA_SOURCE.DATA_SOURCE_ACCOUNT";

  /** Mapped Field DATA_SOURCE_PASSWORD */
  static final String DataSourcePassword = "DW_DATA_SOURCE.DATA_SOURCE_PASSWORD";

  /** Mapped Field STATUS */
  static final String Status = "DW_DATA_SOURCE.STATUS";

  /** Mapped Field REMARKS */
  static final String Remarks = "DW_DATA_SOURCE.REMARKS";

  public static interface DataProperty {

    /** Attribute id */
    static final String Id = "id";

    /** Attribute dataSourceType */
    static final String DataSourceType = "dataSourceType";

    /** Attribute dataSourceCode */
    static final String DataSourceCode = "dataSourceCode";

    /** Attribute dataSourceUrl */
    static final String DataSourceUrl = "dataSourceUrl";

    /** Attribute dataSourceAccount */
    static final String DataSourceAccount = "dataSourceAccount";

    /** Attribute dataSourcePassword */
    static final String DataSourcePassword = "dataSourcePassword";

    /** Attribute status */
    static final String Status = "status";

    /** Attribute remarks */
    static final String Remarks = "remarks";
  }

  public static interface _DataObjectProperty extends DataProperty {}

  /**
   * Delete Data
   *
   * @param final long id
   * @throws Exception
   */
  void delete(final long id) throws Exception;
  /**
   * Find Data By Primary Key
   *
   * @param final long id
   * @throws Exception
   */
  DataSource findById(final long id) throws Exception;
}
